package com.sjl.db137.service.imp;

import com.sjl.db137.service.RoleService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sjl.db137.entity.Role;
import com.sjl.db137.mapper.RoleMapper;

import javax.management.relation.RoleList;
import java.util.List;

/**
 * @Author: zero domain
 * @CreateTime: 2024/12/24 11:49
 * @Description: TODO
 * @Version: 1.0
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Override
    public List<Role> selectRoleByUserId(int userid) {
        List<Role> roleList = this.baseMapper.selectRoleByUserId(userid);
        return roleList;
    }
}
